<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>俄罗斯方块</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: #f5f5f5;
            font-family: Arial, sans-serif;
        }
        #gameCanvas {
            border: 1px solid #ccc;
            background: white;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            margin: 20px;
        }
        .score-panel {
            display: flex;
            gap: 20px;
            margin-bottom: 20px;
        }
        .score-item {
            background: white;
            padding: 10px 20px;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0,0,0,0.1);
        }
        .controls {
            margin-top: 20px;
            text-align: center;
            color: #666;
        }
    </style>
</head>
<body>
    <div class="score-panel">
        <div class="score-item">分数: <span id="score">0</span></div>
        <div class="score-item">最高分: <span id="highScore">0</span></div>
        <div class="score-item">等级: <span id="level">1</span></div>
    </div>
    <canvas id="gameCanvas"></canvas>
    <div class="controls">
        ← → : 移动 | ↑ : 旋转 | ↓ : 加速下落 | 空格 : 直接下落 | P : 暂停
    </div>
    <script src="tetris.js"></script>
</body>
</html>